package com.hibase.demo;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

//import com.hibase.core.mq.registrar.HibaseQueueScanner;

/**
 * @author chenfeng
 * @version 1.0
 * @date 2021/6/11 13:27
 * @des https://gitee.com/cheershi
 */
@Slf4j
//@HibaseQueueScanner(basePackages = {"com.hibase.demo"})
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@ConfigurationPropertiesScan
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext application = SpringApplication.run(DemoApplication.class, args);
        Environment env = application.getEnvironment();
        String port = env.getProperty("server.port");
        log.info("\n----------------------------------------------------------\n\t" +
                "Application WMS is running! Access URLs:\n\t" +
                "Local: \t\thttp://localhost:" + port + "/\n\t" +
                "Swagger文档: \thttp://localhost:" + port + "/doc.html\n" +
                "----------------------------------------------------------");
       // DingDingUtil.sendAppMessage("应用启动成功");
    }
}
